import requests

#requests 基本使用
#get post
#requests.get()
#requests.post()
#requests  返回的是一个response对象
#response.json()

# url
base_url ='https://weather.cma.cn/api/now'
response=requests.get(base_url)
print(response.json())